--- gcc-4.8.2/gcc/config/mips/mips.md   2013-02-25 21:53:16.000000000 +0800
+++ gcc-4.8.2-fixed/gcc/config/mips/mips.md     2013-12-31 20:23:26.021484375 +0800
@@ -6715,6 +6715,9 @@
                          (match_operand:GPR 3 "reg_or_0_operand")))]
   "ISA_HAS_CONDMOVE"
 {
+  if (!ISA_HAS_FP_CONDMOVE &&
+      GET_MODE_CLASS (GET_MODE (XEXP (operands[1], 0))) != MODE_INT)
+    FAIL;
   mips_expand_conditional_move (operands);
   DONE;
 })
